package com.yunhai.xc.user.persistence;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.yunhai.xc.user.domain.User;

public interface UserMapper {
	@Select("select * from user where username=#{username}")
	public User selectByUserName(String username);

	@Update("update user set age=66 where id=#{id}")
	public void updateById(Integer id);

	@Select("select * from user where id=#{id}")
	public User selectById(Integer id);

	@Delete("delete from user where id =#{id}")
	public void deleteById(Integer id);
}
